from django.conf.urls.defaults import *
from drivertest.questions import views

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',

    (r'^start_test/', views.get_random_questions),
    (r'^show_results/', views.show_results),
    (r'^hardest_test/', views.get_hardest_questions),
    (r'^login/', views.login_authenticate),
    (r'^create_user/$', views.create_user),
    (r'^user_profile/$', views.user_profile),
    (r'^easiest_test/$', views.get_easiest_questions),
    (r'^user_hardest_test/$', views.get_user_hardest_questions),
    (r'^logout/$', views.logout_view),
    (r'^fb/', include('fb.urls')),
    (r'^staging/', views.create_new_questions_from_staging),
    (r'^$', views.landing_page),
    
    # Only for development server
    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
    {'document_root': 'C:\\Projects\\rasherz\\Django\\drivertest\\media', 'show_indexes' : True}),
    

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
)
